<template>
	<BasicModal v-bind="$attrs" @register="registerModal" :footer="null" width="65%" :title="getTitle">
		<div class="versionDesc" v-if="record" v-html="record.versionDesc"></div>
	</BasicModal>
</template>
<script lang="ts">
	import { defineComponent, ref, unref } from 'vue';
	import { BasicModal, useModalInner } from '/@/components/Modal';
	export default defineComponent({
		name: 'ViewDetailModal',
		components: { BasicModal },
		emits: ['success', 'register'],
		setup(_, { emit }) {
			const record = ref(null);
			const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
				setModalProps({ confirmLoading: false });
				record.value = data.record;
			});
			const getTitle = "查看更新日志";
			return {
				registerModal,
				getTitle,
				record
			};
		},
	});
</script>